#pragma once

#include "e2d/core/Component.h"
#include "e2d/core/render/MaterialView.h"
#include "fxcc/core/MetaCache.h"

namespace e2d
{

	struct FixedMeshRender :public e2d::Component
	{
		FXCC_DEFINE_COMPONENT_LABEL(FixedMeshRender);
		
		e2d::MaterialViewMap m_MaterialView;

		e2d::MeshMap m_MeshMap;

		void OnLoad() override;

		void OnStart() override;
		
		void OnUpdate() override;

		void OnUpdateRuntime() override;

		void OnDestroy() override;

		std::shared_ptr<fxcc::graph::common::MeshJack> GetMesh() const;


	};

};